<?php
	####################################################
	# library import and object instance.              #
	####################################################
	# 커먼 인클루드
	include_once( '../common.php' );

	####################################################
	# request data($_POST AND $_GET FROM $_REQUEST)    #
	####################################################
	# REQUEST(get and post variables)
	//*/
	//*/

	# GET(url variables)
	//*/
	//*/

	# POST(form variables)
	//*/
	//*/

	# Validation(special case validate)
	//*/
	//*/

	####################################################
	# implementation                                   #
	####################################################
	$sec->individual_access();

?>
<?php
	# HTML START
	echo $html->custom_header(TITLE." > 패키지 매니저");
	echo $tplt->page_construct_javascript();
	echo $html->custom_js("{$JS}common.js");
	echo $html->custom_css("{$CSS}common.css");
	echo $html->custom_body();
?>
	<?php $tplt->app_head($NAVI)?>
	<?php $tplt->tiles_admin_sidebar($NAVI)?>
	<?php $tplt->tiles_admin_contents($pkname, $pname, $pdesc)?>

		<h4>어플리케이션의 모드를 설정합니다.</h4>
		<?php echo NForm::open(NULL, FALSE, "list");?>
			<?php echo NForm::mode('set');?>
			<table class="tbl" border="0" cellpadding="0" cellspacing="0">
				<colgroup>
					<col width="40" />
					<col width="*" />
				</colgroup>
				<tr>
					<td>
						<input type="radio" name="appmode_set" id="rd1" class="" value="dev" <?=NForm::checked(Cookier::get('appmode'), "dev")?> />
					</td>
					<td>
						<label for="rd1">개발 : php의 모든 에러메시지가 보여집니다. n로그가 화면 모드로 동작 합니다.</label>
					</td>
				</tr>
				<tr>
					<td>
						<input type="radio" name="appmode_set" id="rd0" class="" value="product" <?=NForm::checked(Cookier::get('appmode'), "product")?>
						 />
					</td>
					<td>
						<label for="rd0">출시 : php의 모든 에러메시지가 감춰집니다. n로그가 파일 모드로 동작 합니다.</label>
					</td>
				</tr>
			</table>
			<?php echo NForm::close();?>
			<div class="tblt">
				체크된 모드로 : <span class="cbtn_s" onclick="$('#formx_list').submit();">설정</span>&nbsp;
			</div>

			<br />
			<table class="tbl" cellspacing="3" cellpadding="3" width="100%">
				<tr>
					<td>
						<?php
							Nlog::puts('쿠키의 설정 상황에 따라 이 디버깅 메시지가 보일 것입니다.', Cookier::get('appmode'));
						?>
					</td>
				</tr>
			</table>
<?php
	# HTML END
	echo $tplt->tiles_admin_footer();
	echo $tplt->page_destruct_javascript();
	include_once( '../endproc.php' );
	echo $html->html_footer();
?>